Why does `rpm` show 3 httpd packages, and which one provides the real httpd?
Posted
by
Stefan Lasiewski
on Server Fault
See other posts from Server Fault
or by Stefan Lasiewski
Published on 2013-10-31T18:47:27Z
Indexed on
2013/10/31
21:58 UTC
Read the original article
Hit count: 523
I ran yum update
on my CentOS5 webserver a few days ago. Today I just noticed that I have 3 httpd-* rpms!
How can I end up with three RPMs for httpd (My other servers only have one httpd rpm). I want to make sure that my server has a patched, updated version of /usr/sbin/httpd
. How can I tell which one of these packages provides the httpd binary at /usr/sbin/httpd
?
[root@node1 ~]# rpm -q httpd
httpd-2.2.3-76.el5.centos
httpd-2.2.3-78.el5.centos
httpd-2.2.3-83.el5.centos
[root@node1 ~]# /usr/sbin/httpd -V |grep version
Server version: Apache/2.2.3
[root@node1 ~]# rpm -q httpd-2.2.3-76.el5.centos --list |grep -w /usr/sbin/httpd
/usr/sbin/httpd
/usr/sbin/httpd.event
/usr/sbin/httpd.worker
[root@node1 ~]# rpm -q httpd-2.2.3-78.el5.centos --list |grep -w /usr/sbin/httpd
/usr/sbin/httpd
/usr/sbin/httpd.event
/usr/sbin/httpd.worker
[root@node1 ~]# rpm -q httpd-2.2.3-83.el5.centos --list |grep -w /usr/sbin/httpd
/usr/sbin/httpd
/usr/sbin/httpd.event
/usr/sbin/httpd.worker
[root@node1 ~]#
root@node1 ~]# rpm -q --provides httpd |grep -w httpd
config(httpd) = 2.2.3-76.el5.centos
httpd-mmn = 20051115
httpd = 2.2.3-76.el5.centos
config(httpd) = 2.2.3-78.el5.centos
httpd-mmn = 20051115
httpd = 2.2.3-78.el5.centos
config(httpd) = 2.2.3-83.el5.centos
httpd-mmn = 20051115
httpd = 2.2.3-83.el5.centos
Update: Answering Mark Wagner's questions:
[root@node1 ~]# rpm -q -f /usr/sbin/httpd
httpd-2.2.3-76.el5.centos
httpd-2.2.3-78.el5.centos
httpd-2.2.3-83.el5.centos
[root@node1 ~]# rpm -V httpd-2.2.3-83.el5.centos
S.5..... c /etc/logrotate.d/httpd
S.5..... c /etc/rc.d/init.d/httpd
....L... /var/www
© Server Fault or respective owner